finding holydays asp.net

94

finding holydays asp.net -

var publicHolidays = DateSystem.GetPublicHoliday(2018, CountryCode.DE);

finding holydays asp.net -

PM> install-package Nager.Date

finding holydays asp.net -

var date = new DateTime(2018, 01, 01);
if (DateSystem.IsPublicHoliday(date, CountryCode.DE))
{
    //Yes - New Year's Day
}

Comments

Submit
0 Comments